<template>
  <div class="alterbox">
    <i class="iconfont">&#xe62e;</i>
    <div>￥{{ GetSum }}</div>
    <button>去结算</button>
  </div>
</template>

<script>
import { mapGetters, mapState } from "vuex";
export default {
  computed: {
    ...mapState("order", ["list1"]),
    ...mapGetters("order", ["GetSum"]),
  },
};
</script>

<style lang="scss" scoped>
.alterbox {
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 0px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  > div {
    flex-grow: 1;
  }
  i {
    margin-right: 20px;
    font-size: 50px;
  }
  button {
    width: 100px;
    text-align: center;
    line-height: 50px;
    background: green;
    border: none;
  }
}
</style>
